package com.automobile.backstage.factory;

import java.util.LinkedHashMap;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-03-09 23:57
 */
public class FilterChainDefinitionMapBuilder {

    private static LinkedHashMap map = null;

    public static LinkedHashMap buildFilterChainDefinitionMap(){

        if(map == null){
            synchronized(FilterChainDefinitionMapBuilder.class){
                map = new LinkedHashMap();
            }
        }

        map.put("/logout.do", "logout");
        map.put("/pages/login.html", "anon");
        map.put("/user/login","anon");
        map.put("/layui/**","anon");
        map.put("/js/**","anon");
        map.put("/files/**","anon");

        map.put("/**", "authc");

        return map;
    }

}
